<?php
class BaseAction extends Action{
	var $tree;
	function _initialize(){
		if(!isset($_SESSION[C('USER_AUTH_KEY')])){
			//重定向
			
			redirect(PHP_FILE .C('USER_AUTH_GATEWAY'));
		}
		else{
			import('@.Util.CategroyTree'); //引入无限分类class;
			$newtree = new CategroyTree();
			$this->tree = $newtree->make_cato_tree();
			$this->assign('sys_name',c('CMS_NAME'));
			
		}
	}
	
}
?>
